Using this method, you write an installer for your application, and include an installation of QuickOPC elements in it as well, step by step.
The installer for your application should contain following steps:
If you want the end user to install the license:
The end user who deploys the application will then:
If the above described procedure for installing the license (presenting the user with the License Manager utility user interface) does not fit the needs of your application, you can automate the deployment of the license as well. This can be done in two ways:
The LicenseManager (GUI-based) and LMConsole (console-based) License Manager utilities are installed on the disk using the OPC Studio Setup program. They can also be directly downloaded using this link.
In .NET 6+, the major installation element is not an assembly, but rather a (NuGet) package, which may consist of multiple assemblies, differentiated by the target platform, and may depend on other packages.
The QuickOPC license needs to be stored inside your aplication in the Managed Resource License Store (the Registry License Store is not supported in .NET 6+). Consequently, there are no additional deployment elements or steps needed with regard to licensing, because the license key is already embedded in your project's assembly by the build process.
Only when using OPC UA: After deploying the assemblies, your installation may want to execute your application with a special switch that will cause it to call static EasyUAClient.Install method. This will create the client instance certificate, in accordance with settings of other static properties on the object. With the default settings, this step is optional, and the application will create the client instance certificate on the first run anyway. If you, however, change the location of the application certificate store to a store that requires administrative privileges for write access, you should use this approach (while running with administrative privileges) in order to assure that the client instance certificate is properly created. For more information, see Providing OPC UA Client Instance Certificate and OPC UA Certificate Stores.
In order to deploy your application developed with QuickOPC for the .NET 6, 7 or 8 runtime (on Windows, Linux, macOS or other operating system if supported), you can use either:
Both these deployment types are described in Microsoft's article .NET application publishing overview. QuickOPC does not have any special requirements or procedures needed above that.